from flask import Response, Flask
app = Flask(__name__)
from flask import render_template

@app.route("/image/desktop<imageid>")
def index(imageid):
	with open('E:\\des\\'+'0'+'.jpg', 'rb') as f:
		image = f.read();
		resp = Response(image, mimetype="image/jpeg")
		return resp
@app.route('/')
def home():
    return render_template("client.html")#homepage.html在templates文件夹下

app.run(host='0.0.0.0',port=8080,debug=True)